<template>
  <div class="father">
    <h3>父组件</h3>
    <div class="content">
      <Song>
        <!-- a是所有数据 -->
        <template v-slot:qwe="{ gequ }">
          <ul>
            <li v-for="s in gequ" :key="s.id">{{ s.name }}</li>
          </ul>
        </template>
      </Song>
      <Song>
        <!-- a是所有数据 -->
        <template v-slot:qwe="params">
          <ol>
            <li v-for="s in params.gequ" :key="s.id">{{ s.name }}</li>
          </ol>
        </template>
      </Song>
      <Song>
        <!-- a是所有数据 -->
        <template v-slot:qwe="params">
          <h3 v-for="s in params.gequ" :key="s.id">
            {{ s.name }}
          </h3>
        </template>
      </Song>
    </div>
  </div>
</template>

<script setup lang="ts">
import Song from "./Song.vue";
</script>

<style scoped>
.father {
  background: rgb(179, 179, 179);
  padding: 10px;
  box-shadow: 0 0 10px black;
  border-radius: 10px;
}
.content {
  display: flex;
  justify-content: space-evenly;
}
img,
video {
  width: 100%;
}
h2 {
  background-color: orange;
  text-align: center;
  font-size: 20px;
  font-weight: 800px;
}
</style>
